String
Types
Functions
Returns a new character sequence that is a subsequence of this character sequence, starting at the specified startIndex and ending right before the specified endIndex.
Properties
Extensions
Creates a new byte input stream for the string.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the specified locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.
Returns the character (Unicode code point) at the specified index.
Returns the character (Unicode code point) before the specified index.
Returns the number of Unicode code points in the specified text range of this String.
Compares two strings lexicographically, optionally ignoring case differences.
Compares two strings lexicographically, optionally ignoring case differences.
Returns true
if this string is equal to the contents of the specified CharSequence, false
otherwise.
Returns true
if this string is equal to the contents of the specified StringBuffer, false
otherwise.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the specified locale, or the original string, if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Encodes this string to an array of bytes in UTF-8 encoding.
Encodes this string or its substring to an array of bytes in UTF-8 encoding.
Returns true
if this string ends with the specified suffix.
Returns true
if this string is equal to other, optionally ignoring character case.
Returns true
if this string is equal to other, optionally ignoring character case.
Uses this string as a format string and returns a string obtained by substituting the specified arguments, using the default locale.
Uses this string as a format string and returns a string obtained by substituting the specified arguments, using the specified locale.
Uses this string as a format string and returns a string obtained by substituting the specified arguments, using the specified locale. If locale is null
then no localization is applied.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using the rules of the specified locale.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.
Returns the index within this string that is offset from the given index by codePointOffset code points.
Prepends indent to every line of the original string.
Creates a new reader for the string.
If this string starts with the given prefix, returns a copy of this string with the prefix removed. Otherwise, returns this string.
Removes the part of a string at a given range.
Removes the part of a string at the given range.
If this string ends with the given suffix, returns a copy of this string with the suffix removed. Otherwise, returns this string.
Replace part of string after the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replace part of string after the last occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replace part of string before the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Replace part of string before the last occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a copy of this string having its first character replaced with the result of the specified transform, or the original string if it's empty.
Detects a common minimal indent like it does trimIndent and replaces it with the specified newIndent.
Detects indent by marginPrefix as it does trimMargin and replace it with newIndent.
Replaces the part of the string at the given range with the replacement char sequence.
Replace the part of string at the given range with the replacement string.
Returns true
if this string starts with the specified prefix.
Returns true
if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Returns true
if this string starts with the specified prefix.
Returns true
if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Returns true
if this string starts with the specified prefix.
Returns true
if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Returns a subsequence of this char sequence.
Returns a substring specified by the given range of indices.
Returns a substring of this string that starts at the specified startIndex and continues to the end of the string.
Returns the substring of this string starting at the startIndex and ending right before the endIndex.
Returns a substring of this string that starts at the specified startIndex and continues to the end of the string.
Returns the substring of this string starting at the startIndex and ending right before the endIndex.
Returns a substring after the first occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a substring after the last occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a substring before the first occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Returns a substring before the last occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
Parses the string as a java.math.BigDecimal number and returns the result.
Parses the string as a java.math.BigDecimal number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a java.math.BigInteger number and returns the result.
Parses the string as a java.math.BigInteger number and returns the result or null
if the string is not a valid representation of a number.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if this string is not null
and its content is equal to the word "true", ignoring case, and false
otherwise.
Returns true
if the content of this string is equal to the word "true", false
if it is equal to "false", and throws an exception otherwise.
Returns true
if the content of this string is equal to the word "true", false
if it is equal to "false", and null
otherwise.
Encodes the contents of this string using the specified character set and returns the resulting byte array.
Parses the string as a signed Byte number and returns the result or null
if the string is not a valid representation of a number.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Copies characters from this string into the destination character array and returns that array.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Returns a CharArray containing characters of this string.
Returns a CharArray containing characters of this string or its substring.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Double number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Float number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an Int number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as a Long number and returns the result or null
if the string is not a valid representation of a number.
Returns a copy of this string converted to lower case using the rules of the default locale.
Returns a copy of this string converted to lower case using the rules of the specified locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Returns a copy of this string converted to lower case using the rules of the default locale.
Parses the string as a Short number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an UByte number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an UInt number and returns the result or null
if the string is not a valid representation of a number.
Parses the string as an ULong number and returns the result or null
if the string is not a valid representation of a number.
Returns a copy of this string converted to upper case using the rules of the default locale.
Returns a copy of this string converted to upper case using the rules of the specified locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Returns a copy of this string converted to upper case using the rules of the default locale.
Parses the string as an UShort number and returns the result or null
if the string is not a valid representation of a number.
Detects a common minimal indent of all the input lines, removes it from every line and also removes the first and the last lines if they are blank (notice difference blank vs empty).
Trims leading whitespace characters followed by marginPrefix from every line of a source string and removes the first and the last lines if they are blank (notice difference blank vs empty).
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using the rules of the specified locale.
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.
Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.